package kr.hkit.powerjava.chapter06;

public class WhileEx1_1 {
		public static void main(String[] args) {
			/*System.out.println("%2d * %2d = %2d \n", 2, 1, 2 * 1);
		System.out.println("%2d * %2d = %2d \n", 2, 2, 2 * 2);
		System.out.println("%2d * %2d = %2d \n", 2, 3, 2 * 3);
		System.out.println("%2d * %2d = %2d \n", 2, 4, 2 * 4);
		System.out.println("%2d * %2d = %2d \n", 2, 5, 2 * 5);
		System.out.println("%2d * %2d = %2d \n", 2, 6, 2 * 6);
		System.out.println("%2d * %2d = %2d \n", 2, 7, 2 * 7);
		System.out.println("%2d * %2d = %2d \n", 2, 8, 2 * 8);
		System.out.println("%2d * %2d = %2d \n", 2, 9, 2 * 9);
		System.out.println("%2d * %2d = %2d \n", 2, 10, 2 * 10);
	*/

		infinireloop();
		
		/*int dan =2;
		while (dan<10){
		caLGuguDan(dan);
		dan++;*/
	}
	
	private static void infinireloop() {
		int i=0;
		while (true){
			System.out.println("!!!!!!!!");
			if (i==5)break;
			i++;
		}
		// TODO Auto-generated method stub
		
	}
	
	
	
	
	
	
	private static void caLGuguDan(int dan) {
		int i =1;
		System.out.println("===="+dan+"====");
		while (i<10){
		System.out.printf("%2d * %2d = %2d \n", dan, i, dan * i);
		i++;
		}
		// TODO Auto-generated method stub

	}

}
